import 'package:storage/generated/json/base/json_field.dart';
import 'package:storage/generated/json/warehouse_in_out_model_entity.g.dart';
import 'dart:convert';
export 'package:storage/generated/json/warehouse_in_out_model_entity.g.dart';

@JsonSerializable()
class WarehouseInOutModelEntity {
  int? id;
  int? companyId;
  ///warehouseType 0 是入库 1是出库
  int? warehouseType;
  int? goodsId;
  int? count;
  double? goodsPrice;
  double? companyPrice;
  String? companyName;
  String? goodsName;
  String? goodsSpecification;
  String? warehouseTime;

  WarehouseInOutModelEntity({
    this.count,
    this.warehouseTime,
    this.goodsId,
    this.warehouseType,
    this.goodsPrice,
    this.goodsName,
    this.companyId,
    this.id,
    this.companyName,
    this.companyPrice,
    this.goodsSpecification,
  });

  factory WarehouseInOutModelEntity.fromJson(Map<String, dynamic> json) =>
      $WarehouseInOutModelEntityFromJson(json);

  Map<String, dynamic> toJson() => $WarehouseInOutModelEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
